immulticontext: Unset client widget on delegate change
authorMatthias Clasen <mclasen@redhat.com>
Sat, 3 Apr 2021 02:24:19 +0000 (22:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 3 Apr 2021 02:24:19 +0000 (22:24 -0400)
commit91bcf6f0ba49a94c568b5a172c3e03a5081c6a89
treee72c1e980a45d15dd497f91a426a3670a776a644
parenta228b2de64d50a205e069c6ba6559d5b7e9599d7
immulticontext: Unset client widget on delegate change

Forgetting to do so was causing the Wayland im context
to leave behind a dead event controller. This was showing
up as a crash when closing the inspector after changing
the im-module property of a GtkText widget. The crash
was delayed until closing the inspector because the
inspector keeps a ref on the event controllers of the
currently shown widget.
gtk/gtkimmulticontext.c